//
//  HeaderView.h
//  7.14详情
//
//  Created by lovena on 15/7/15.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XQModel.h"
@class XQHeaderView;
@protocol HeaderViewDelegate <NSObject>
@optional
-(void)clickDetail;
-(void)hiddenNav:(BOOL)flag;

@end
@interface XQHeaderView : UIView<UIScrollViewDelegate>
@property(nonatomic,weak)id<HeaderViewDelegate>delegate;//代理
@property (weak, nonatomic) IBOutlet UIScrollView *scorllView;//滑动
- (IBAction)gotoDetail;//进入详情
+(id)initWithHeader;//构造
-(void)setData;
@property(nonatomic,strong)XQModel *model;
@property (weak, nonatomic) IBOutlet UILabel *know;
@property (weak, nonatomic) IBOutlet UIButton *name;
@property (weak, nonatomic) IBOutlet UILabel *price;
@property (weak, nonatomic) IBOutlet UILabel *oldprice;
@property (weak, nonatomic) IBOutlet UILabel *fuwu;
@property (weak, nonatomic) IBOutlet UILabel *hpl;
@property (weak, nonatomic) IBOutlet UILabel *person;
@property (strong, nonatomic) IBOutletCollection(UILabel) NSArray *pj;
@property (strong, nonatomic) IBOutletCollection(UIButton) NSArray *activeBtn;
@end
